/*
 * @Author: YYJ
 * @Date: 2023-12-16 14:40:39
 * @Description: 
 * @FilePath: \lgd-admin\src\services\operation\appointment\index.tsx
 */
import { request } from '@umijs/max';

export interface OperationAppointmentParams {
  mobile?: string;
  status?: string;
  current?: number;
  pageSize?: number;
}

export interface OperationAppointmentItem {
  id: number;
  appointDate: Date;
}

/** 查询工资列表 POST /admin/operationAppointment/queryList */
export async function queryList(body: OperationAppointmentParams) {
  return request<API.LgdTable>('/admin/operationAppointment/queryList', {
    method: 'POST',
    data: body
  });
}

/** 查询工资列表 POST /admin/operationAppointment/add */
export async function addUpdate(body: OperationAppointmentItem) {
  return request<API.LgdResult>('/admin/operationAppointment/addUpdate', {
    method: 'POST',
    data: body
  });
}